package com.github.chirspan.xaas.uc.dubbo.service;

import com.github.chirspan.xaas.dubbo.server.IRemoteRoleService;
import com.github.chirspan.xaas.uc.service.IRbacRoleService;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;
import java.util.Set;

/**
 * @className: RemoteRoleServiceImpl
 * @description: <p></p>
 * @author: chenpan
 * @date: 2021/8/27 11:34
 **/
@DubboService
public class RemoteRoleServiceImpl implements IRemoteRoleService {

    @Autowired
    private IRbacRoleService roleService;


    @Override
    public List<String> getRoleIdsByRole(Set<String> roles) {
       return roleService.getRoleIdsByRole(roles);
    }
}
